package com.hh.test.service;

import com.hh.mybatisflex.service.IBaseService;
import com.hh.test.domain.TestLeave;

import java.util.List;

/**
 * OA 请假申请Service接口
 *
 * @author hh
 * @date 2023-04-07
 */
public interface ITestLeaveService extends IBaseService<TestLeave>
{

    /**
     * 提交审批
     * @param testLeave
     * @return
     */
    boolean startFlow(TestLeave testLeave);

    /**
     * 删除
     * @param ids
     * @return
     */
    boolean deleteLeave(List<Long> ids);

    /**
     * 提交审批
     * @param id
     * @return
     */
    boolean submit(Long id);
}
